/*
 * @Author: lp
 * @Date: 2022-02-14 14:00:09
 * @LastEditTime: 2022-02-14 14:06:12
 * @LastEditors: Please set LastEditors
 * @Description: 终端配置
 * @FilePath: \nien-vue3-admin\src\api\system\client.ts
 */
import request from '@/utils/request'

// 查询终端配置列表
export const listClient = (params) => request({
  url: '/system/client/list',
  params,
})

// 查询终端配置详细
export const getClient = (clientId) => request({
  url: `/system/client/${ clientId }`,
})

// 新增终端配置
export const addClient = (data) => request({
  url: '/system/client',
  method: 'post',
  data,
})

// 修改终端配置
export const updateClient = (data) => request({
  url: '/system/client',
  method: 'put',
  data,
})

// 删除终端配置
export const delClient = (clientIds) => request({
  url: `/system/client/remove/${ clientIds }`,
  method: 'delete',
})